'use strict';

async function getAll(ctx, next) {
    ctx.body='所有的学生'
}
async function getById(ctx, next) {

}
async function addItem(ctx, next) {

}
async function updateItem(ctx, next) {

}
async function delItem(ctx, next) {

}

module.exports = {
    'get /students': getAll,
    'get /students/:id': getById,
    'post /students': addItem,
    'put /students/:id': updateItem,
    'delete /students/:id': delItem,
}
